<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>XShell账号登录</title>
</head>

<style>
.login-container {
	margin: 50px;
	width: 100%;
}

.form-container {
	margin: 0px auto;
	width: 50%;
	text-align: center;
	box-shadow: 1px 1px 10px #888888;
	height: 300px;
	padding: 5px;
}

input {
	margin-top: 10px;
	width: 350px;
	height: 30px;
	border-radius: 3px;
	border: 1px #E9686B solid;
	padding-left: 2px;
}

.btn {
	width: 350px;
	height: 35px;
	line-height: 35px;
	cursor: pointer;
	margin-top: 20px;
	border-radius: 3px;
	background-color: #E9686B;
	color: white;
	border: none;
	font-size: 15px;
}

.title {
	margin-top: 5px;
	font-size: 18px;
	color: #E9686B;
}
</style>
<body>
	<div class="login-container">
		<div class="form-container">
			<p class="title">XShell登录</p>
			<form name="loginForm" method="post" th:action="@{/login}">
			    <input type="hidden" name="RequestURL" th:value="${RequestURL}"/> <br>
				<input type="text" name="ip" placeholder="IP" /> <br>
				<input type="text" name="username" placeholder="用户名" /> <br>
				<input type="password" name="password" placeholder="密码" /> <br>
				<button type="submit" class="btn">登 &nbsp;&nbsp; 录</button>
			</form>
			<p style="color: red" th:if="${isFail}" >${err}</p>
		</div>
	</div>
</body>
</html>